package org.pageley.games.sanctuary.domain.environment.pathfinding;

import org.pageley.games.sanctuary.domain.Location;


public class ManhattanHeuristic implements DistanceHeuristic {

	@Override
	public double estimateDistance(Location from, Location to) {
		return Math.abs(to.getX() - from.getX()) + Math.abs(to.getY() - from.getY());
	} 
	
}
